﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true" Inherits="Calendar_WeekList" Title="无标题页" Codebehind="WeekList.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
    #list ul li
    {
    	list-style-type:none;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/calendar/calendarIcon.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li style="width: 90px;"><a id="lnkMonthCal" runat="server" href="javascript:go()"><span>
                <b style="background-image: url(../common/images/calendar/cal_month.gif);">&nbsp;</b>
                <asp:Literal ID="Literal2" runat="server" Text="月日程"></asp:Literal></span></a></li>
            <li style="padding-left: 10px;">
                <asp:DropDownList ID="drpDepts" runat="server" OnSelectedIndexChanged="drpDepts_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:DropDownList ID="drpUsers" runat="server" OnSelectedIndexChanged="drpUsers_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
            </li>
            <li><asp:Button ID="btnRefresh" OnClick="btnRefresh_Click" runat="server" Text="Button"
                    CssClass="refresh"></asp:Button></li>
        </ul>
    </div>
    <div id="head" style="height: 30px; padding-top: 10px;">
        <asp:ImageButton ID="btnPre" runat="server" ImageUrl="~/common/images/Calendar/arrow_left.gif"
            OnClick="btnPre_Click" />
        &nbsp; &nbsp; <b>
            <asp:Label ID="lblStartTime" runat="server" Text="Label" Font-Size="Small"></asp:Label>
            &nbsp;- &nbsp;<asp:Label ID="lblEndTime" runat="server" Text="Label" Font-Size="Small"></asp:Label></b>
        &nbsp; &nbsp;
        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/common/images/Calendar/arrow_right.gif"
            OnClick="btnNext_Click" />
    </div>
   
    <div id="list">
        <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
            <LayoutTemplate>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tbl1">
                    <tr>
                        <th style="width: 10%;" scope="col">
                            <asp:Label ID="Label1" runat="server" Text="星期/日期"></asp:Label>
                        </th>
                        <th style="width: 45%;" scope="col">
                            <asp:Label ID="Label2" runat="server" Text="上午"></asp:Label>
                        </th>
                        <th style="width: 45%; border-right-width: 0px;" scope="col">
                            <asp:Label ID="Label3" runat="server" Text="下午"></asp:Label>
                        </th>
                    </tr>
                    <tr runat="server" id="items">
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr id="trdays" runat="server">
                    <td style="text-align: center;">
                        <asp:Label ID="Label4" runat="server" Text='<%#Eval("WeekDate") %>'></asp:Label>
                    </td>
                    <td id="tdAM" runat="server" class="cal_td" title="双击添加日程">
                        <asp:ListView ID="lvAM" runat="server" ItemPlaceholderID="PMList">
                            <LayoutTemplate>
                                <ul>
                                    <li id="PMList" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href="javascript:go()" onclick='<%#EditCal(Eval("ID"))%>'
                                        title='<%# Eval("Name") %>'>
                                        <%#Truncate(Eval("Name"),10)%>
                                    </a>&nbsp;<span class="cal_joiner" title='<%#Eval("JoinerNames") %>'>[<%#Truncate(Eval("JoinerNames"), 8)%>]</span></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <ul>
                                    <li>&nbsp;</li></ul>
                            </EmptyDataTemplate>
                        </asp:ListView>
                    </td>
                    <td id="tdPM" runat="server" style="border-right-width: 0px;" class="cal_td"
                        title="双击添加日程">
                        <asp:ListView ID="lvPM" runat="server" ItemPlaceholderID="PMList">
                            <LayoutTemplate>
                                <ul>
                                    <li id="PMList" runat="server"></li>
                                </ul>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:Label ID="lblTime" runat="server" Text="Label"></asp:Label>&nbsp; <a href="javascript:go()" onclick='<%#EditCal(Eval("ID"))%>' title='<%#Eval("Name")%>'>
                                        <%#Truncate(Eval("Name"),10)%>
                                    </a>&nbsp;<span class="cal_joiner" title='<%#Eval("JoinerNames") %>'>[<%#Truncate(Eval("JoinerNames"), 8)%>]</span></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <ul>
                                    <li>&nbsp;</li></ul>
                            </EmptyDataTemplate>
                        </asp:ListView>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
</asp:Content>
